package com.zp.common.core.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * @Description
 * @Author zhang peng
 * @Date 2021/5/21
 **/
@Data
@Configuration
@ConfigurationProperties(prefix = "file-path-all")
@RefreshScope
public class CommonProperties {
    public static final String PREFIX = "filePathAll";

    private Boolean isEnableMinio;
    /**
     * 上传地址
     */
    private String url;

    /**
     * 令牌
     */
    private String token;

    /**
     * 文件服务器地址
     */
    private String fileServicePath;
    /**
     * 静态资源物理路径
     */
    private String staticPath;

    /**
     * 静态资源映射路径
     */
    private String path;

    /**
     * 是否存储到本地磁盘
     */
    private Boolean enableOss;

    /**
     * 是否加密
     */
    private Boolean isEncrypt;

    private String rabbitMqIp;
    private String rabbitMqPort;
    private String rabbitMqUsername;
    private String rabbitMqPassword;
    private Boolean isOpenAuth;
    private String authOrg;
    private Boolean isAllOrgAllow;
    private Boolean isSystemAuth;
}
